<%@ page contentType="text/html;charset=utf-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@include file="./common/base.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户中心_约导游</title>
<!--css-->
<link rel="stylesheet" type="text/css" href="css/wutongstyle.css">
</head>

<body>
<!--head begin-->
<%@ include  file="./common/header.jsp"%>
<!--nav end--> 
<!--content begin-->
<div class="wt_content">
  <dl class="yuedaoyou">
    <dd>
      <div class="daoyou_info clearfix">
        <div class="xx_box">
          <div class="tainfobox yonghu">
            <h3 id="tuan"><i class="i_co"></i>修改密码</h3>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="biaodan">
              <tr>
                <td class="title">原密码：</td>
                <td><input type="password" id="oldPassId" value=""></td>
              </tr>
                <tr>
                <td class="title">新密码：</td>
                <td><input type="password" id="newPassId" value=""></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><button type="button" value="确认" onclick="modifyPass()">确认</button></td>
              </tr>
            </table>
          </div>
        </div>
        <div class="zp">
          <div class="tel">
            <h4>快捷菜单</h4>
            <ul class="quick">
       		<li><a href="adminlogin.jsp" >新申请</a></li>
              <li><a href="adminlogin_1.jsp" >已审核</a></li>
              <li><a href="adminletter_4.jsp" >系统消息</a></li>
              <li><a href="adminModifyPass.jsp" class="on">修改密码</a></li>
            </ul>
          </div>
        </div>
      </div>
    </dd>
  </dl>
</div>
<!--content end--> 
<!--footer begin-->
<%@ include  file="./common/footer.jsp"%>
<!--footer end-->
</body>
<script type="text/javascript">


function modifyPass() {
	var objp= "{\"oldPass\":\""+$("#oldPassId").val()+"\","+
			    "\"newPass\":\""+$("#newPassId").val()+"\""+
			    "}";
	 $.ajax({
		  url: '${path}/core/adminModifyPass',
		  type: 'POST',
		  timeout: 30000,
		  cache : false,
	      data :objp,
	      async: false,
	      dataType:"json",      
         contentType:"application/json",   
	     // contentType: "application/json; charset=utf-8",
		  success:function(msg){
			  alert("ok");
		  },
		   failure:function(msg){
			   alert(eval('('+msg.responseText+')').error_text);
		   		
		   },
		   error:function(msg){
			   alert(eval('('+msg.responseText+')').error_text); 
		   }
	});
}









</script>
</html>
